const multer = require('multer')
var upload = multer({
	dest: 'data/'
});
const files = require('../server/file.js')

module.exports = function(app) {
	app.post('/upload', upload.any(), (req, res) => {
		files.imgUpload(req, res)
	})
	
	app.post('/deleteImg', (req, res) => {
		files.imgDelete(req, res)
	})
}
